package com.example.bean;

import lombok.Data;
import org.sagacity.sqltoy.config.annotation.Column;
import org.sagacity.sqltoy.config.annotation.Entity;
import org.sagacity.sqltoy.config.annotation.SqlToyEntity;
import org.sagacity.sqltoy.config.annotation.Id;

import java.io.Serializable;

@Entity(tableName = "tmp_abc")
@SqlToyEntity
@Data
public class User implements Serializable {
    @Id(strategy="generator",generator="org.sagacity.sqltoy.plugins.id.impl.NanoTimeIdGenerator")
    @Column(name="id",comment="id",length=32L,type=java.sql.Types.VARCHAR,nativeType="VARCHAR",nullable=false)
    private String id;
    @Column(name="xh",comment="订单类别",length=100L,type=java.sql.Types.VARCHAR,nativeType="VARCHAR",nullable=true)
    private String xh;
    @Column(name="xm",comment="订单类别",length=100L,type=java.sql.Types.VARCHAR,nativeType="VARCHAR",nullable=true)
    private String xm;
}
